"""认证相关数据模型"""

from pydantic import BaseModel, Field
from typing import Optional

class LoginRequest(BaseModel):
    """登录请求模型"""
    provider: str = Field(..., description="云厂商名称")
    access_key: str = Field(..., description="Access Key")
    secret_key: str = Field(..., description="Secret Key")

class TokenResponse(BaseModel):
    """Token 响应模型"""
    token: str = Field(..., description="JWT Token")
    provider: str = Field(..., description="云厂商名称")
    expires_in: int = Field(default=3600, description="Token 有效期(秒)")

class UserInfo(BaseModel):
    """用户信息模型"""
    provider: str = Field(..., description="云厂商")
    access_key: str = Field(..., description="Access Key")
    region: Optional[str] = Field(None, description="默认区域")
</